package xworker.lang.util;

import java.io.File;

public class FileUtils {
    public static File[] listFiles(File dir){
        if(dir == null || !dir.isDirectory()){
            return new File[0];
        }else{
            File[] files = dir.listFiles();
            return files != null ? files : new File[0];
        }
    }
}
